<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Http 连接灯控开关灯 </title>
</head>
<body>
<!-- bootstrap-switch -->
<link href="ref/bootstrap.css" rel="stylesheet">
<link href="ref/bootstrap-switch.min.css" rel="stylesheet">
<script src="ref/jquery-1.7.2.min.js"></script>
<script src="ref/bootstrap-switch.min.js"></script>

<!--<script src="protobuf.js"></script>-->
<script src="HttpNetty.js"></script>
<form onsubmit="return false;">
    <input id="lightSwitch" type="checkbox" name="my-checkbox" checked="checked" onchange="isCheck()">
    <br>
    <button id="query" type="button" class="btn btn-primary" onclick="queryLightStatus()">查询灯控状态</button>
    <br>
    <div id="queryResult">

    </div>
</form>
</body>
<script type="text/javascript">
    $("[name='my-checkbox']").bootstrapSwitch();
</script>
</html>
